import request from '@/utils/request/index.js'
export default {
	/**查询直播间
	 * @param {Object} userId
	 */
	getMyliveRoom(userId){
		return request.request({
			url: '/h5/myliveroom/currentLiveRoom/'+userId,
			method : 'get',
		})
	},
	/**查询
	 * @param {Object} userId
	 */
	query(userId){
		return request.request({
			url: '/h5/noccloudhome/compInfo',
			method : 'post',
			data:{
				userId : userId
			}
		})
	},
	//获取样册
	/**
	 * @param {Object} id
	 */
	getSampleBookList(id){
		return request.request({
			url: '/h5/nocsamplebook/getSampleBookList/' + id,
			method : 'post',
		})
	},
	/**获取电话列表
	 * @param {Object} id
	 */
	getServiceTelList(id) {
		return request.request({
			url: '/h5/userservicetel/getServiceTelByUserId/' + id,
			method : 'post',
		})


	},
	/**获取展商参加的展会
	 * @param {Object} id
	 */
	getExhibitionByUser(id){
		return request.request({
			url: '/h5/exhibition/getExhibitionByUser',
			method : 'post',
			data:{
				userId : id
			}
		})
	},
	// /**展商展厅页面关注，取消关注
	//  * @param {Object} userId
	//  * @param {Object} shoucangFlag
	//  */
	// shoucang(userId,shoucangFlag){
	// 	return request.request({
	// 		url:'/h5/noccloudhome/shoucang',
	// 		method:'post',
	// 		data:{
	// 			userId:userId,
	// 			shoucangFlag:shoucangFlag,
	// 		}
	// 	})
	// },


	/**获取展会信息
	 * @param {Object} id
	 */
	getExhibitionInfo(id){
		return request.request({
			url: '/h5/nocuserexhibition/getExhibitionInfo',
			method : 'post',
			data:{
				userId : id
			}
		})
	},
	//获取收藏的视频
	getConnectVideo(likeSearch) {
		return request.request({
			url: '/h5/nocvideo/listConnect',
			method : 'post',
			data:likeSearch,
		})
	},

	/**
	 * 获取小程序码
	 * @param productSearch
	 * @returns {*}
	 */
	getwxacode(path){
		return request.request({
			url:"/WXMini/getwxacode",
			method:'post',
			data:{
				path: path
			}
		})
	},

	//示例   后期删除
	getProductList(productSearch){
		return request.request({
			url:"/h5/nocproduct/indexQueryPage",
			method:'post',
			data:{
				relatedType : 0,
				search: productSearch.search,
				page: productSearch.page,
				limit: productSearch.limit
			},
		})
	}

}
